import {mock } from "mockjs";
// webpack环境下,图片,json格式数据都是默认暴露的,不用export,可以直接引入
import banner from './banner.json'
import floor from './floor.json'
import category from './category.json'
import addresslist from './addresslist.json'
// mock模拟数据--调用mock（）方法，第一个参数：ajax请求地址，第二个参数：请求数据

mock('/mock/category',{code:200,data:category.data})

mock('/mock/banner',{code:200,data:banner})

mock('/mock/floor',{code:200,data:floor})

mock('/mock/addresslist',{code:200,data:addresslist})


